package com.mis.pos.service.impl;

import com.mis.pos.entity.PayEntity;
import com.mis.pos.repository.PayRepository;
import com.mis.pos.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author yuxiang
 * @CreatedDate 2019/11/23 20:00
 */
@Service
public class PayServiceImpl implements PayService {


    @Autowired
    private PayRepository payRepository;


    @Override
    public int save(PayEntity payEntity) {
        try {
            payRepository.save(payEntity);
        }catch (Exception e){
            e.printStackTrace();
            return -1;
        }
        return 0;
    }
}
